package com.xxcloud.search.api.note;

import java.util.List;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import com.xxcloud.model.web.JobResult;
import com.xxcloud.model.web.ListResult;
import com.xxcloud.search.api.bean.note.NoteApiParameter;
import com.xxcloud.search.api.bean.note.NoteItem;

/**
 * Created by chenbingwen on 19/10/31.<br/>
 * 对外提供远程服务接口
 */
@RequestMapping
public interface INoteApiService {

    @GetMapping(value = "note.json")
    ListResult<NoteItem> search(@RequestBody NoteApiParameter parameter);

    @PutMapping(value = "note.json")
    JobResult updateIndex(@RequestBody List<Long> noteIds);

    @DeleteMapping(value = "note.json")
    JobResult deleteIndex(@RequestBody List<Long> noteIds);
}
